@extends('layouts.app')
@section('title') 创建分类@stop
@section('content')
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    @include('home._banner')
                    <div class="card-body">
                        <form action="{{ url('home/ctype') }}" method="post">
                            {{
                            csrf_field()
                            }}
                            <div>
                                名称：<input type="text" name="data[name]" value="{{ $type['name'] or '' }}" placeholder="输入名称">
                            </div>
                            <br>
                            <div>
                                排序：<input type="text" name="data[sort]" value="{{ $type['sort'] or '0' }}" placeholder="排序越小越靠前">
                            </div>
                            <br>
                            <div>
                                <input type="submit">
                                <input type="reset">
                            </div>
                        </form>


                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
